
const config = {
    common: {
        domain: `${location && location.origin.substring(7)}`,
    },
    development:{
        hostSaas: `${location && location.origin}`,
        uploadUrl: `${location && location.origin}/`,
        // uploadUrl: 'https://job.banchengyun.com/',
        code: 'ZhaoPinCode##'    //万能code
    },
    production: {
        // http://192.168.10.93/job-saas/public/index.php
        // https://job.banchengyun.com/
        hostSaas: `${location && location.origin}`,
        uploadUrl: `${location && location.origin}/`,
        code: 'ZhaoPinCode##'    //万能code
    }
}

const env =  process.env.NODE_ENV 
export default Object.assign(config.common, config[env])
